// 5. ⾃定义类型
// ⾃定义类型，可以更灵活的限制类型
var Gender;
(function (Gender) {
    Gender[Gender["Male"] = 0] = "Male";
    Gender[Gender["Female"] = 1] = "Female";
})(Gender || (Gender = {}));
// 定义两个学⽣变量：s1、s2
var s1;
var s2;
s1 = { name: '张三', age: 98, gender: Gender.Male, grade: 1 };
s2 = { name: '吊毛', age: 97, gender: Gender.Male, grade: 3 };
console.log(s1);
console.log(s2);
